﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using Skyworth.CRM.Service.Entity;
using Skyworth.CRM.Service.IBLL;
using Skyworth.CRM.Service.IDAL;

namespace Skyworth.CRM.BLL
{
    public class BrandBLL:IBrandBLL
    {
       private IBrandDAL _brandDAL;

       public BrandBLL(IBrandDAL brandDAL)
        {
            _brandDAL = brandDAL;
        }

        public void Add(Brand model)
        {
            _brandDAL.Add(model);
        }

        public void update(Brand model)
        {
            _brandDAL.update(model);
        }

        public void Delete(int brandId)
        {
            _brandDAL.Delete(brandId);
        }

        public Brand GetBrandById(int brandId)
        {
            return _brandDAL.GetBrandById(brandId);
        }

        public DataTable GetBrand(string strWhere, Hashtable parameters)
        {
            return _brandDAL.GetBrand(strWhere, parameters);
        }
    }
}
